package com.zqu.service.impl;

import com.zqu.mapper.PManagerment.Order1Mapper;
import com.zqu.pojo.Order1;
import com.zqu.service.Order1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Order1ServiceImpl implements Order1Service {

    @Autowired(required = false)
    private Order1Mapper order1Mapper;


    @Override
    public Order1 selectOrder1ById(long id) {
        return order1Mapper.selectTById(id);
    }

    @Override
    public List<Order1> selectList(Order1 order1) {
        return order1Mapper.selectList(order1);
    }

    @Override
    public boolean insertOrder1(Order1 order1) {
        return order1Mapper.insertT(order1)>0;
    }

    @Override
    public boolean updateOrder1(Order1 order1) {
        return order1Mapper.updateT(order1)>0;
    }

    @Override
    public boolean deleteOrder1(long id) {
        return order1Mapper.deleteT(id)>0;
    }

    @Override
    public boolean deleteOrder1ByIds(String[] ids) {
        return order1Mapper.deleteTByIds(ids)>0;
    }
}
